-- GENERATED SPELL FOR [Alliance Silithyst Sentinel] --


function spell0_17765(pUnit, Event) --@Incapacitating Shout,Self--
pUnit:FullCastSpellOnTarget(18328,pUnit)
pUnit:RegisterEvent('Sorts_17765', 8342, 1)
end

function spell1_17765(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(19643,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17765', 5266, 1)
end

function spell2_17765(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17765', 8337, 1)
end

function Sorts_17765(pUnit, Event)
local choix_sorts_17765 = math.random(0, 2)
if choix_sorts_17765 == 0 then
pUnit:RegisterEvent('spell0_17765', 1, 1)
end
if choix_sorts_17765 == 1 then
pUnit:RegisterEvent('spell1_17765', 1, 1)
end
if choix_sorts_17765 == 2 then
pUnit:RegisterEvent('spell2_17765', 1, 1)
end
end

function mob17765_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17765', math.random(1500, 3000), 1)
end

function mob17765_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17765_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17765_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17765, 1, 'mob17765_Action')
RegisterUnitEvent(17765, 2, 'mob17765_Leave')
RegisterUnitEvent(17765, 3, 'mob17765_Kill')
RegisterUnitEvent(17765, 4, 'mob17765_Die')
